#!/bin/bash
wget --no-check-certificate https://www.amsat.org/tle/current/nasabare.txt
mv -f nasabare.txt predict.tle
rm -f satdata.h
( echo "#ifndef _SATDATA_"; echo "#define _SATDATA_" ) >satdata.h
./maketledata.sh >>satdata.h
( echo -n "const int numsats="; grep -e \" satdata.h|wc -l; echo ";" ) >>satdata.h
echo "#endif" >>satdata.h
